package com.miracle.java2110.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Vacation {
    private Integer id;

    private Integer vwnoid;

    private String vwonname;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;

    private String vleavedays;

    private String vleavecause;

    private String vapprover;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVwnoid() {
        return vwnoid;
    }

    public void setVwnoid(Integer vwnoid) {
        this.vwnoid = vwnoid;
    }

    public String getVwonname() {
        return vwonname;
    }

    public void setVwonname(String vwonname) {
        this.vwonname = vwonname == null ? null : vwonname.trim();
    }

    public Date getVdate() {
        return vdate;
    }

    public void setVdate(Date vdate) {
        this.vdate = vdate;
    }

    public String getVleavedays() {
        return vleavedays;
    }

    public void setVleavedays(String vleavedays) {
        this.vleavedays = vleavedays == null ? null : vleavedays.trim();
    }

    public String getVleavecause() {
        return vleavecause;
    }

    public void setVleavecause(String vleavecause) {
        this.vleavecause = vleavecause == null ? null : vleavecause.trim();
    }

    public String getVapprover() {
        return vapprover;
    }

    public void setVapprover(String vapprover) {
        this.vapprover = vapprover == null ? null : vapprover.trim();
    }
}